const { DataTypes } = require('../utils/sequelize');

const Grade = {
  name: "Grade",
  data: {
    id: {
      type: DataTypes.NUMBER,
      allowNull: false,       //是否能为空
      primaryKey: true,       //主键
      autoIncrement: true, 
    },
    courseId: {
      type: DataTypes.STRING,
      allowNull: false,
    },
    studentId: {
        type: DataTypes.STRING,
        allowNull: false,
    },
    grade: {
        type: DataTypes.NUMBER,
        allowNull: false,
    },
  },
  options: {
      tableName: 'grade_tb'
  }
}
module.exports = Grade